#!/usr/bin/env bash
cd nlp_service
gunicorn -w3 -b0.0.0.0:10000 'nlp-api:load_nlp_app(config_file="../config/config_itg.yml", logging_config_file="../config/logging.yml")' \
--daemon --access-logfile logs/access.log  --error-logfile logs/error.log -k gevent

cd ../src

gunicorn -w3 -b0.0.0.0:5000 'search-api:load_app(config_file="../config/config_itg.yml", logging_config_file="../config/logging.yml")' \
--daemon --access-logfile logs/access.log  --error-logfile logs/error.log -k gevent

